Carbon


NMProcPtr

Header: Notification.h Carbon status: Supported

Defines a pointer to a notification callback function. Your notification callback function is executed as the final stage of a notification.

typedef void(* NMProcPtr) (
    NMRecPtr nmReqPtr
);

You would declare your function like this if you were to name it MyNMCallback:

void MyNMCallback (
    NMRecPtr nmReqPtr
);
nmReqPtr

A pointer to a notification record.

DISCUSSION

The nmResp field of the notification record contains the address of a response function executed as the final stage of a notification. If no processing is necessary in response to the notification, then you can supply the value NULL in that field. If you supply the address of your own response function in the nmResp field, the Notification Manager passes it one parameter, a pointer to your notification record.

AVAILABILITY

Supported in Carbon.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)